/**
 * Created by gongxun on 16/11/15.
 */

var KwxppRoundEndedEventkwxpp = function(){
    var that = new GameResponseBase();

    that.handle = function (binary, msgid) {
        that.loadMessage(binary, msgid);

        that.handleMsg(that.msg);
    };

    that.handleMsg = function(msg){
        that.msg = msg;
        that.msg = mo.gameHelper.replaceJsonTokwx(that.msg, {});

        mo.kwxTable.mPlayGameCount++;


        //是否是断线重练收到的
        if (mo.kwxTableStatus.isReconnect) {
            //结算界面
            mo.kwxTable.mKwxTableUILayer.mKwxTableEndLayer.setEndInfo(msg, true);
        }else {
            mo.kwxTable.mKwxTableUILayer.mKwxTableEndLayer.setEndInfo(msg);

            //打完翻牌 加动画
            mo.kwxTable.mKwxCardLayer.setWinAnim(msg);
        }
    };

    return that;
};